package factoryMode.factory.abstractFactory.order;

import factoryMode.factory.abstractFactory.pizza.LDCheesePizza;
import factoryMode.factory.abstractFactory.pizza.LDPepperPizza;
import factoryMode.factory.abstractFactory.pizza.Pizza;

/**
 * @author： pang-yun
 * @date： 2021-10-21 22:18
 * 功能目的 ：用于
 */

public class LDFactory implements AbstractFactory{
    @Override
    public Pizza createPizza(String orderType) {
        Pizza pizza =null;
        if (orderType.equals("cheese")){
            pizza= new LDCheesePizza();
        }else if (orderType.equals("pepper")){
            pizza = new LDPepperPizza();
        }

        return pizza;
    }
}
